<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>添加</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../../../../lib/include.js"></script>
    <link rel="stylesheet" href="../../../../../../public-tools/pc/plugins/bootstrap-fileinput/css/fileinput.min.css">
    <link rel="stylesheet" href="../../../../../../public-tools/pc/plugins/bootstrap-select-1.12.4/css/bootstrap-select.min.css">

    <style>
        .form-control {
            margin-bottom: 8px;
        }

        .form-control:focus,
        .single-line:focus {
            border-color: #0e9aef !important;
        }

        .radio-inline {
            line-height: 5px;
        }
        .dropdown-menu.inner {
            background-color: #1ab394;
            color: white;
        }
        .dropdown-menu.open {
            border-radius: 5px;
        }
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content" id="app" v-cloak>

    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <form id="Form" autocomplete="off">
                <div style="padding: 0">
                    <input type="hidden" name="id">
                    <input type="hidden" name="version" value="0">
                    <div class="btn-group btn-group-justified" role="group">
                        <div class="btn-group" role="group">
                            <button type="button" class="btn btn-success" @click="selectStaff">从员工表中导入</button>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-3">
                            <label class="form-inline">名字</label>
                            <div>
                                <input type="text" class="form-control" name="name" placeholder="请输入名字">
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <label class="form-inline">性别</label>
                            <div>
                                <select class="form-control" name="sex">
                                    <option value="0">保密</option>
                                    <option value="2">男</option>
                                    <option value="1">女</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <label class="form-inline">所授科目</label>
                            <div>
                                <input type="text" class="form-control" name="subject" placeholder="请输入所授科目">
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <label class="form-inline">星级</label>
                            <div>
                                <input type="text" class="form-control" name="star" placeholder="请输入星级">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-4">
                            <label class="form-inline">微信关联电话</label>
                            <div>
                                <input type="text" class="form-control" name="wxTel" placeholder="请输入微信关联电话">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <label class="form-inline">常用电话</label>
                            <div>
                                <input type="text" class="form-control" name="phone" placeholder="请输入常用电话">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <label class="form-inline">微信号</label>
                            <div>
                                <input type="text" class="form-control" name="wxCode" placeholder="请输入微信号">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-12">
                            <label class="form-inline">住址</label>
                            <div>
                                <input type="text" class="form-control" name="addr" placeholder="请输入住址">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-4">
                            <label class="form-inline">已授课时</label>
                            <div>
                                <input type="text" class="form-control" name="courseNum" placeholder="请输入已授课时">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <label class="form-inline">教龄</label>
                            <div>
                                <input type="text" class="form-control" name="teachYear" placeholder="请输入教龄">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <label class="form-inline">毕业院校</label>
                            <div>
                                <input type="text" class="form-control" name="graduatedSchool" placeholder="请输入毕业院校">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-12">
                            <label class="form-inline">课程标签</label>
                            <div>
                                <select class="selectpicker form-control" id="tags" multiple name="tags"
                                        data-actions-box="false" >
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-12">
                            <label class="form-inline">校区</label>
                            <div>
                                <select class="form-control" name="schoolId" >
                                    <option v-if="schoolId == ''" value="">---公用---</option>
                                    <option v-for="(value, key) in schoolList" :key="key" :value="key">{{value}}</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-12">
                            <label class="form-inline">教学经历</label>
                            <div>
                                <textarea name="experience" class="form-control" rows="3" maxlength="999"
                                          placeholder="请输入教学经历">{{experience}}</textarea>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-12">
                            <label class="form-inline">简述</label>
                            <div>
                                <textarea name="shortDesc" class="form-control" rows="3" maxlength="999"
                                          placeholder="请输入简述">{{desc}}</textarea>
                            </div>
                        </div>
                    </div>

                    <div class="col-sm-12 form-group">
                        <label class="form-inline">详情</label>
                        <div>
                            <input id="articleContent" type="hidden" name="description">
                            <div id="editor">
                            </div>
                        </div>
                    </div>
                    <div class="form-group" style="margin-top: 10px">
                        <label class="form-inline">图片<font style="color: red">尺寸：【】</font></label>
                        <input id="articleImg" type="hidden" name="imgId">
                        <input type="hidden" id="oldImgId" name="oldImgId">
                        <div class="file-loading">
                            <input id="fileUploadBtn" type="file" name="file">
                        </div>
                    </div>

                </div>

                <div style="text-align: center">
                    <a href="javascript:parent.layer.closeAll();" class="btn btn-default" style="width: 10%;">关 闭</a>
                    <button type="submit" class="btn btn-primary" style="width: 10%;" v-if="permission(0)">保存</button>
                    <button type="submit" class="btn btn-primary" style="width: 10%;" v-else="permission(1)">保存</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="../../../../../../public-tools/pc/plugins/wangEditor/wangEditor-video.js"></script>
<script src="../../../../../../public-tools/pc/plugins/bootstrap-fileinput/js/fileinput.js"></script>
<script src="../../../../../../public-tools/pc/plugins/bootstrap-select-1.12.4/js/bootstrap-select.min.js"></script>
<script src="../../../../js/teach-manage/teacher/teacher/edit.js"></script>
</body>
</html>
